package com.wondertek.poms.bc.feign;


import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(name = "kafka", url = "${kafka.url}")
@Component
public interface KafkaFeignClient {

    @PostMapping("/send")
    String kafkaSend(@RequestParam String topic, @RequestBody String message);

}
